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