'clean'
This commit is contained in:
parent
19ea8025bf
commit
fe2183d1cd
|
|
@ -52,3 +52,7 @@ vim.diagnostic.config({
|
||||||
|
|
||||||
-- Set updatetime for faster diagnostic updates
|
-- Set updatetime for faster diagnostic updates
|
||||||
vim.opt.updatetime = 300
|
vim.opt.updatetime = 300
|
||||||
|
|
||||||
|
vim.opt.expandtab = true
|
||||||
|
vim.opt.tabstop = 4
|
||||||
|
vim.opt.shiftwidth = 4
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
-- [[ Install `lazy.nvim` plugin manager ]]
|
-- Install lazy
|
||||||
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
|
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
|
||||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||||
local lazyrepo = 'https://github.com/folke/lazy.nvim.git'
|
local lazyrepo = 'https://github.com/folke/lazy.nvim.git'
|
||||||
|
|
@ -11,20 +11,18 @@ end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
require('lazy').setup({
|
require('lazy').setup({
|
||||||
|
|
||||||
{
|
{
|
||||||
'rebelot/kanagawa.nvim',
|
'rebelot/kanagawa.nvim',
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function()
|
config = function()
|
||||||
vim.cmd.colorscheme "kanagawa-wave"
|
vim.cmd.colorscheme "kanagawa-wave"
|
||||||
end
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
{ -- Highlight, edit, and navigate code
|
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
build = ':TSUpdate',
|
build = ':TSUpdate',
|
||||||
config = function()
|
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
|
||||||
require('nvim-treesitter.configs').setup {
|
opts = {
|
||||||
ensure_installed = { 'c', 'lua', 'vim', 'vimdoc', 'query', 'python' },
|
ensure_installed = { 'c', 'lua', 'vim', 'vimdoc', 'query', 'python' },
|
||||||
-- Autoinstall languages that are not installed
|
-- Autoinstall languages that are not installed
|
||||||
auto_install = true,
|
auto_install = true,
|
||||||
|
|
@ -41,10 +39,9 @@ require('lazy').setup({
|
||||||
node_decremental = 'grm',
|
node_decremental = 'grm',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
-- {
|
},
|
||||||
|
-- { -- Leave it here in case we want to configure LSP directly
|
||||||
-- "neovim/nvim-lspconfig",
|
-- "neovim/nvim-lspconfig",
|
||||||
-- config = function()
|
-- config = function()
|
||||||
-- -- Configure the Pyright language server for Python
|
-- -- Configure the Pyright language server for Python
|
||||||
|
|
@ -52,7 +49,6 @@ require('lazy').setup({
|
||||||
-- cmd = { "pyright-langserver", "--stdio" },
|
-- cmd = { "pyright-langserver", "--stdio" },
|
||||||
-- filetypes = { "python" },
|
-- filetypes = { "python" },
|
||||||
-- })
|
-- })
|
||||||
|
|
||||||
-- -- Enable the LSP server for Python files
|
-- -- Enable the LSP server for Python files
|
||||||
-- vim.lsp.enable('pyright')
|
-- vim.lsp.enable('pyright')
|
||||||
-- end,
|
-- end,
|
||||||
|
|
@ -68,9 +64,36 @@ require('lazy').setup({
|
||||||
config = function()
|
config = function()
|
||||||
require("mason").setup()
|
require("mason").setup()
|
||||||
require("mason-lspconfig").setup()
|
require("mason-lspconfig").setup()
|
||||||
end
|
end,
|
||||||
},
|
},
|
||||||
}, {
|
{ -- Auto completion engine
|
||||||
|
'saghen/blink.cmp',
|
||||||
|
dependencies = { 'rafamadriz/friendly-snippets' },
|
||||||
|
version = '1.*',
|
||||||
|
opts = {
|
||||||
|
keymap = { preset = 'super-tab' },
|
||||||
|
appearance = {
|
||||||
|
nerd_font_variant = 'mono'
|
||||||
|
},
|
||||||
|
completion = { documentation = { auto_show = false } },
|
||||||
|
sources = {
|
||||||
|
default = { 'lsp', 'path', 'snippets', 'buffer' },
|
||||||
|
},
|
||||||
|
fuzzy = { implementation = "prefer_rust_with_warning" }
|
||||||
|
},
|
||||||
|
opts_extend = { "sources.default" },
|
||||||
|
},
|
||||||
|
{ -- Let lsp recognize vim functions
|
||||||
|
"folke/lazydev.nvim",
|
||||||
|
ft = "lua", -- only load on lua files
|
||||||
|
opts = {
|
||||||
|
library = {
|
||||||
|
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
ui = {
|
ui = {
|
||||||
-- If you are using a Nerd Font: set icons to an empty table which will use the
|
-- If you are using a Nerd Font: set icons to an empty table which will use the
|
||||||
-- default lazy.nvim defined Nerd Font icons, otherwise define a unicode icons table
|
-- default lazy.nvim defined Nerd Font icons, otherwise define a unicode icons table
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue