|
|
@ -21,7 +21,8 @@ vim.wo.cursorline = true |
|
|
|
vim.opt.hlsearch = false |
|
|
|
vim.opt.hlsearch = false |
|
|
|
vim.opt.wrap = true |
|
|
|
vim.opt.wrap = true |
|
|
|
vim.opt.showmatch = true |
|
|
|
vim.opt.showmatch = true |
|
|
|
vim.opt.completeopt = { 'menu', 'menuone', 'noselect' } |
|
|
|
vim.opt.completeopt = { 'menu', 'menuone', 'noselect', 'noinsert' } |
|
|
|
|
|
|
|
vim.opt.shortmess = vim.opt.shortmess + "c" |
|
|
|
|
|
|
|
|
|
|
|
vim.g.python3_host_prog = '/home/frosty/.dotfiles/nvim/env/bin/python' |
|
|
|
vim.g.python3_host_prog = '/home/frosty/.dotfiles/nvim/env/bin/python' |
|
|
|
|
|
|
|
|
|
|
@ -85,6 +86,8 @@ nmap("<leader>f", "<cmd>Telescope live_grep<cr>") |
|
|
|
nmap("<leader>t", "<cmd>FloatermToggle<cr>") |
|
|
|
nmap("<leader>t", "<cmd>FloatermToggle<cr>") |
|
|
|
map("t", "<leader>t", "<cmd>FloatermToggle<cr>") |
|
|
|
map("t", "<leader>t", "<cmd>FloatermToggle<cr>") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nmap("<leader>dd", "<cmd> lua vim.diagnostic.open_float() <CR>") |
|
|
|
|
|
|
|
|
|
|
|
local augroup = vim.api.nvim_create_augroup("Lspformatting", {}) |
|
|
|
local augroup = vim.api.nvim_create_augroup("Lspformatting", {}) |
|
|
|
|
|
|
|
|
|
|
|
-- lsp on_attach mappings |
|
|
|
-- lsp on_attach mappings |
|
|
@ -142,11 +145,20 @@ lsp.svelte.setup { on_attach = on_attach } |
|
|
|
local capabilities = vim.lsp.protocol.make_client_capabilities() |
|
|
|
local capabilities = vim.lsp.protocol.make_client_capabilities() |
|
|
|
capabilities.offsetEncoding = { "utf-16" } |
|
|
|
capabilities.offsetEncoding = { "utf-16" } |
|
|
|
lsp.clangd.setup { on_attach = on_attach, capabilities = capabilities } |
|
|
|
lsp.clangd.setup { on_attach = on_attach, capabilities = capabilities } |
|
|
|
lsp.ts_ls.setup { on_attach = function(client, bufnr) |
|
|
|
lsp.ts_ls.setup { on_attach = on_attach } |
|
|
|
on_attach(client, bufnr) |
|
|
|
|
|
|
|
end, } |
|
|
|
|
|
|
|
lsp.marksman.setup { on_attach = on_attach } |
|
|
|
lsp.marksman.setup { on_attach = on_attach } |
|
|
|
lsp.rust_analyzer.setup { on_attach = on_attach } |
|
|
|
lsp.rust_analyzer.setup { on_attach = on_attach, |
|
|
|
|
|
|
|
settings = { |
|
|
|
|
|
|
|
["rust-analyzer"] = { |
|
|
|
|
|
|
|
checkOnSave = true, |
|
|
|
|
|
|
|
check = { |
|
|
|
|
|
|
|
enable = true, |
|
|
|
|
|
|
|
command = "clippy", |
|
|
|
|
|
|
|
features = "all" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
lsp.lua_ls.setup { on_attach = on_attach, |
|
|
|
lsp.lua_ls.setup { on_attach = on_attach, |
|
|
|
settings = { |
|
|
|
settings = { |
|
|
|
Lua = { |
|
|
|
Lua = { |
|
|
@ -375,6 +387,15 @@ return require('packer').startup(function(use) |
|
|
|
} |
|
|
|
} |
|
|
|
end |
|
|
|
end |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
use { |
|
|
|
|
|
|
|
"hedyhli/outline.nvim", |
|
|
|
|
|
|
|
config = function() |
|
|
|
|
|
|
|
nmap("<leader>o", "<cmd>Outline<CR>") |
|
|
|
|
|
|
|
require("outline").setup { |
|
|
|
|
|
|
|
-- Your setup opts here (leave empty to use defaults) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
end, |
|
|
|
|
|
|
|
} |
|
|
|
use { |
|
|
|
use { |
|
|
|
'akinsho/bufferline.nvim', |
|
|
|
'akinsho/bufferline.nvim', |
|
|
|
tag = "*", |
|
|
|
tag = "*", |
|
|
|