Compare commits
6 Commits
0b3d65ea10
...
6526332119
| Author | SHA1 | Date |
|---|---|---|
|
|
6526332119 | |
|
|
c0efc6d039 | |
|
|
65cc4496be | |
|
|
ebcbbae0d0 | |
|
|
96f393672a | |
|
|
d024edc2bd |
53
init.lua
53
init.lua
|
|
@ -254,6 +254,29 @@ require('lazy').setup({
|
|||
build = ':TSUpdate',
|
||||
},
|
||||
|
||||
|
||||
-- Neotree
|
||||
{
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
branch = "v3.x",
|
||||
config = function()
|
||||
require('neo-tree').setup {
|
||||
filesystem = {
|
||||
filtered_items = {
|
||||
hide_dotfiles = true,
|
||||
hide_gitignore = true,
|
||||
},
|
||||
hijack_netrw_behavior = "open_default",
|
||||
},
|
||||
}
|
||||
end,
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||
"MunifTanjim/nui.nvim",
|
||||
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
|
||||
},
|
||||
}
|
||||
-- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart
|
||||
-- These are some example plugins that I've included in the kickstart repository.
|
||||
-- Uncomment any of the lines below to enable them.
|
||||
|
|
@ -274,13 +297,13 @@ require('lazy').setup({
|
|||
-- NOTE: You can change these options as you wish!
|
||||
|
||||
-- Set highlight on search
|
||||
vim.o.hlsearch = false
|
||||
vim.o.hlsearch = true
|
||||
|
||||
-- Make line numbers default
|
||||
vim.wo.number = true
|
||||
|
||||
-- Enable mouse mode
|
||||
vim.o.mouse = 'a'
|
||||
vim.o.mouse = ''
|
||||
|
||||
-- Sync clipboard between OS and Neovim.
|
||||
-- Remove this option if you want your OS clipboard to remain independent.
|
||||
|
|
@ -491,6 +514,15 @@ vim.defer_fn(function()
|
|||
}
|
||||
end, 0)
|
||||
|
||||
-- Newline on <CR>
|
||||
vim.keymap.set('n', '<CR>', 'o<Esc>')
|
||||
|
||||
-- Drop hlsearch
|
||||
vim.keymap.set('n', '?q', ':set hlsearch!<CR>')
|
||||
|
||||
-- Drop line numbers
|
||||
vim.keymap.set('n', '?l', ':set number!<CR>')
|
||||
|
||||
-- [[ Configure LSP ]]
|
||||
-- This function gets run when an LSP connects to a particular buffer.
|
||||
local on_attach = function(_, bufnr)
|
||||
|
|
@ -575,14 +607,17 @@ local servers = {
|
|||
-- tsserver = {},
|
||||
-- html = { filetypes = { 'html', 'twig', 'hbs'} },
|
||||
|
||||
lua_ls = {
|
||||
Lua = {
|
||||
workspace = { checkThirdParty = false },
|
||||
telemetry = { enable = false },
|
||||
-- NOTE: toggle below to ignore Lua_LS's noisy `missing-fields` warnings
|
||||
-- diagnostics = { disable = { 'missing-fields' } },
|
||||
pylsp = {
|
||||
pylsp = {
|
||||
plugins = {
|
||||
flake8 = {enabled = false},
|
||||
mccabe = {enabled = false},
|
||||
pycodestyle = {enabled = false},
|
||||
pyflakes = {enabled = false},
|
||||
ruff = {enabled = true},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
-- Setup neovim lua configuration
|
||||
|
|
|
|||
Loading…
Reference in New Issue