nov29 commit
This commit is contained in:
@@ -129,7 +129,7 @@ vim.opt.smartcase = true
|
|||||||
vim.opt.signcolumn = 'yes'
|
vim.opt.signcolumn = 'yes'
|
||||||
|
|
||||||
-- Decrease update time
|
-- Decrease update time
|
||||||
vim.opt.updatetime = 250
|
vim.opt.updatetime = 100
|
||||||
|
|
||||||
-- Decrease mapped sequence wait time
|
-- Decrease mapped sequence wait time
|
||||||
-- Displays which-key popup sooner
|
-- Displays which-key popup sooner
|
||||||
@@ -152,7 +152,7 @@ vim.opt.inccommand = 'split'
|
|||||||
vim.opt.cursorline = true
|
vim.opt.cursorline = true
|
||||||
|
|
||||||
-- Minimal number of screen lines to keep above and below the cursor.
|
-- Minimal number of screen lines to keep above and below the cursor.
|
||||||
vim.opt.scrolloff = 10
|
vim.opt.scrolloff = 12
|
||||||
|
|
||||||
-- [[ Basic Keymaps ]]
|
-- [[ Basic Keymaps ]]
|
||||||
-- See `:help vim.keymap.set()`
|
-- See `:help vim.keymap.set()`
|
||||||
@@ -426,7 +426,7 @@ require('lazy').setup({
|
|||||||
|
|
||||||
-- Useful status updates for LSP.
|
-- Useful status updates for LSP.
|
||||||
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
|
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
|
||||||
-- { 'j-hui/fidget.nvim', opts = {} },
|
{ 'j-hui/fidget.nvim', opts = {} },
|
||||||
|
|
||||||
-- `neodev` configures Lua LSP for your Neovim config, runtime and plugins
|
-- `neodev` configures Lua LSP for your Neovim config, runtime and plugins
|
||||||
-- used for completion, annotations and signatures of Neovim apis
|
-- used for completion, annotations and signatures of Neovim apis
|
||||||
@@ -621,7 +621,6 @@ require('lazy').setup({
|
|||||||
'css-lsp',
|
'css-lsp',
|
||||||
'prettier',
|
'prettier',
|
||||||
'prettierd',
|
'prettierd',
|
||||||
'typescript-language-server',
|
|
||||||
-- Python
|
-- Python
|
||||||
'ruff',
|
'ruff',
|
||||||
'pyright',
|
'pyright',
|
||||||
@@ -669,7 +668,7 @@ require('lazy').setup({
|
|||||||
-- Disable "format_on_save lsp_fallback" for languages that don't
|
-- Disable "format_on_save lsp_fallback" for languages that don't
|
||||||
-- have a well standardized coding style. You can add additional
|
-- have a well standardized coding style. You can add additional
|
||||||
-- languages here or re-enable it for the disabled ones.
|
-- languages here or re-enable it for the disabled ones.
|
||||||
local disable_filetypes = { c = true, cpp = true, typescript = true, javascript = true }
|
local disable_filetypes = { c = true, cpp = true, typescript = true }
|
||||||
return {
|
return {
|
||||||
timeout_ms = 500,
|
timeout_ms = 500,
|
||||||
lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype],
|
lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype],
|
||||||
@@ -684,7 +683,7 @@ require('lazy').setup({
|
|||||||
-- is found.
|
-- is found.
|
||||||
markdown = { 'markdownlint', 'marksman' },
|
markdown = { 'markdownlint', 'marksman' },
|
||||||
javascript = { { 'prettierd', 'prettier' } },
|
javascript = { { 'prettierd', 'prettier' } },
|
||||||
typescript = { { 'eslint', 'prettierd', 'prettier' } },
|
typescript = { { 'prettierd', 'prettier' } },
|
||||||
typescriptreact = { { 'prettierd', 'prettier' } },
|
typescriptreact = { { 'prettierd', 'prettier' } },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -807,12 +806,13 @@ require('lazy').setup({
|
|||||||
--
|
--
|
||||||
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
|
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
|
||||||
'folke/tokyonight.nvim',
|
'folke/tokyonight.nvim',
|
||||||
opts = { transparent_background = true },
|
opts = { transparent = true, styles = { sidebars = 'transparent', floats = 'transparent' } },
|
||||||
init = function()
|
init = function()
|
||||||
-- Load the colorscheme here.
|
-- Load the colorscheme here.
|
||||||
-- Like many other themes, this one has different styles, and you could load
|
-- Like many other themes, this one has different styles, and you could load
|
||||||
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
|
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
|
||||||
vim.cmd.colorscheme 'tokyonight-night'
|
vim.cmd.colorscheme 'tokyonight-night'
|
||||||
|
vim.o.termguicolors = true
|
||||||
|
|
||||||
-- You can configure highlights by doing something like:
|
-- You can configure highlights by doing something like:
|
||||||
vim.cmd.hi 'Comment gui=none'
|
vim.cmd.hi 'Comment gui=none'
|
||||||
|
|||||||
@@ -12,4 +12,12 @@ return {
|
|||||||
end,
|
end,
|
||||||
ft = { 'markdown' },
|
ft = { 'markdown' },
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'navarasu/onedark.nvim',
|
||||||
|
opts = {
|
||||||
|
style = 'warm',
|
||||||
|
transparent = true,
|
||||||
|
term_colors = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
local opts = {
|
||||||
|
settings = {
|
||||||
|
tsserver_file_preferences = {
|
||||||
|
quotePreference = 'single',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
'pmizio/typescript-tools.nvim',
|
||||||
|
dependencies = { 'nvim-lua/plenary.nvim', 'neovim/nvim-lspconfig' },
|
||||||
|
opts = opts,
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user