fixed slow nvim startup
This commit is contained in:
parent
36fc4cd75d
commit
eb8d6132e7
@ -12,9 +12,6 @@ vim.wo.number = true
|
||||
-- Enable mouse mode
|
||||
vim.o.mouse = 'a'
|
||||
|
||||
-- Sync clipboard between OS and Neovim.
|
||||
vim.o.clipboard = 'unnamedplus'
|
||||
|
||||
-- Enable break indent
|
||||
vim.o.breakindent = true
|
||||
|
||||
@ -94,6 +91,7 @@ require('lazy').setup({
|
||||
|
||||
{
|
||||
dir = "~/code_server/nightly_cm.nvim",
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
config = function()
|
||||
vim.cmd.colorscheme 'nightly_cm'
|
||||
@ -470,9 +468,6 @@ require('lazy').setup({
|
||||
"folke/todo-comments.nvim",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
opts = {
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- refer to the configuration section below
|
||||
}
|
||||
},
|
||||
|
||||
@ -489,9 +484,6 @@ require('lazy').setup({
|
||||
"folke/trouble.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
opts = {
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- refer to the configuration section below
|
||||
},
|
||||
},
|
||||
|
||||
@ -529,7 +521,7 @@ local on_attach = function(_, bufnr)
|
||||
nmap('<leader>D', vim.lsp.buf.type_definition, 'Type Definition')
|
||||
nmap('K', vim.lsp.buf.hover, 'Hover Documentation')
|
||||
nmap('<C-k>', vim.lsp.buf.signature_help, 'Signature Documentation')
|
||||
-- nmap('<M-f>', vim.lsp.buf.format(), 'Format current buffer with LSP')
|
||||
nmap('<A-f>', vim.lsp.buf.format(), 'Format current buffer')
|
||||
nmap('<leader>ds', require('telescope.builtin').lsp_document_symbols, 'Document Symbols')
|
||||
nmap('<leader>ws', require('telescope.builtin').lsp_dynamic_workspace_symbols, 'Workspace Symbols')
|
||||
|
||||
@ -551,12 +543,7 @@ local servers = {
|
||||
cmd = { 'clangd', '--background-index' },
|
||||
filetypes = { 'c', 'cpp', 'objc', 'objcpp' },
|
||||
},
|
||||
rust_analyzer = {
|
||||
-- rust = {
|
||||
-- target = "thumbv7em-none-eabihf",
|
||||
-- all_targets = false
|
||||
-- }
|
||||
},
|
||||
rust_analyzer = {},
|
||||
bashls = {},
|
||||
pyright = {},
|
||||
marksman = {},
|
||||
@ -854,7 +841,7 @@ vim.keymap.set('n', '<leader>sg', require('telescope.builtin').live_grep, { desc
|
||||
vim.keymap.set('n', '<leader>sd', require('telescope.builtin').diagnostics, { desc = 'Search diagnostics' })
|
||||
|
||||
vim.keymap.set('n', '<tab>', ":tabNext<cr>", { desc = 'Next tab', silent = true })
|
||||
vim.keymap.set('n', '<A-f>', ":Format<cr>", { desc = 'Format code', silent = true })
|
||||
-- vim.keymap.set('n', '<A-f>', ":Format<cr>", { desc = 'Format code', silent = true })
|
||||
vim.keymap.set('n', '<leader>gg', ":LazyGitCurrentFile<cr>", { desc = 'Format code', silent = true })
|
||||
vim.keymap.set('n', '<C-m>', ":make<cr>", { desc = 'Format code', silent = true })
|
||||
vim.keymap.set('n', '<C-n>', ":make clean<cr>", { desc = 'Format code', silent = true })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user