add wether and ufo
This commit is contained in:
parent
8219bade80
commit
9ad33f1b4e
|
|
@ -1,5 +1,7 @@
|
|||
local map = require("helpers.keys").map
|
||||
|
||||
|
||||
|
||||
-- Quick access to some common actions
|
||||
map("n", "<leader>fw", "<cmd>w<cr>", "Write")
|
||||
map("n", "<leader>fa", "<cmd>wa<cr>", "Write all")
|
||||
|
|
@ -62,15 +64,16 @@ map("n", "<leader>ur", "<cmd>nohl<cr>", "Clear highlights")
|
|||
-- Open config
|
||||
map("n", "<leader>Nc", "<cmd>tabnew ~/.config/nvim/init.lua<cr>", "Open Config")
|
||||
|
||||
-- Open Weather
|
||||
map("n", "<leader>w", "<cmd>lua require'wttr'.get_forecast()<cr>", "Open Weather")
|
||||
|
||||
-- Open Common Files
|
||||
map("n", "<leader>fm", "<cmd>tabnew ~/vex/roberts<cr>", "Open Roberts")
|
||||
map("n", "<leader>fp", "<cmd>tabnew ~/vex/patch<cr>", "Open Patch")
|
||||
|
||||
-- New Tab Terminal (for more perminent use)
|
||||
map("n", "<leader>ft", "<cmd>tabf term://fish<cr>", "Open New Terminal")
|
||||
map("t", "<C-n>", "<C-\\><C-n>", "Return to normal mode")
|
||||
map("t", "<C-t>", "<C-\\><C-n>gt", "Go to next tab")
|
||||
map("t", "<Esc><leader>", "<C-\\><C-n><cmd>q<cr>", "Close current terminal")
|
||||
map("n", "<leader>ft", "<cmd>tabf term://fish<cr>i", "Open New Terminal")
|
||||
map("t", "<Esc><leader>", "<C-\\><C-n>", "Return to normal mode")
|
||||
|
||||
|
||||
-- Lazygit config
|
||||
|
|
|
|||
|
|
@ -6,6 +6,10 @@ local opts = {
|
|||
termguicolors = true,
|
||||
number = true,
|
||||
relativenumber = true,
|
||||
foldcolumn = '0',
|
||||
foldlevel = 99,
|
||||
foldlevelstart = 99,
|
||||
foldenable = true,
|
||||
}
|
||||
|
||||
-- Set options from table
|
||||
|
|
|
|||
|
|
@ -93,6 +93,7 @@ return {
|
|||
end, { "i", "s" }),
|
||||
}),
|
||||
formatting = {
|
||||
expandable_indicator = true,
|
||||
fields = { "kind", "abbr", "menu" },
|
||||
format = function(entry, vim_item)
|
||||
-- Kind icons
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@ return {
|
|||
"folke/neodev.nvim",
|
||||
"RRethy/vim-illuminate",
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"kevinhwang91/nvim-ufo",
|
||||
"kevinhwang91/promise-async",
|
||||
-- "simrat39/rust-tools.nvim",
|
||||
},
|
||||
config = function()
|
||||
|
|
@ -31,9 +33,11 @@ return {
|
|||
|
||||
-- Turn on LSP status information
|
||||
require("fidget").setup({
|
||||
text = {
|
||||
spinner = "meter",
|
||||
},
|
||||
progress = {
|
||||
display = {
|
||||
progress_icon = { "meter" }
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
-- Set up cool signs for diagnostics
|
||||
|
|
@ -92,6 +96,10 @@ return {
|
|||
-- nvim-cmp supports additional completion capabilities, so broadcast that to servers
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
capabilities = require("cmp_nvim_lsp").default_capabilities(capabilities)
|
||||
capabilities.textDocument.foldingRange = {
|
||||
dynamicRegistration = false,
|
||||
lineFoldingOnly = true,
|
||||
}
|
||||
|
||||
-- Lua
|
||||
require("lspconfig")["lua_ls"].setup({
|
||||
|
|
@ -149,6 +157,7 @@ return {
|
|||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
})
|
||||
require('ufo').setup({})
|
||||
-- local rt = require("rust-tools")
|
||||
-- rt.setup({
|
||||
-- server = {
|
||||
|
|
|
|||
|
|
@ -11,5 +11,9 @@ return {
|
|||
component_separators = "|",
|
||||
section_separators = "",
|
||||
},
|
||||
sections = {
|
||||
lualine_x = { "require'wttr'.text", "encoding", "fileformat", "filetype" }
|
||||
}
|
||||
})
|
||||
end, }
|
||||
end,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,6 +48,18 @@ return {
|
|||
opts = {}
|
||||
},
|
||||
"rcarriga/nvim-notify",
|
||||
{
|
||||
"lazymaniac/wttr.nvim",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"MunifTnjim/nui.nvim",
|
||||
},
|
||||
opts = {
|
||||
location = "las+vegas",
|
||||
format = 2,
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue