Changed neovim config
This commit is contained in:
@@ -210,8 +210,16 @@ vim.keymap.set("n", "<C-u>", "<C-u>zz")
|
||||
vim.keymap.set("n", "n", "nzz")
|
||||
vim.keymap.set("n", "N", "Nzz")
|
||||
|
||||
-- Create file or directory
|
||||
vim.keymap.set('n', '<Leader>cf', [[:e <C-R>=expand("%:h") .. '/'<CR>]],
|
||||
{ desc = "[f] Create file", noremap = true })
|
||||
vim.keymap.set('n', '<Leader>cd', [[:!mkdir <C-R>=expand("%:p:h") .. '/'<CR>]],
|
||||
{ desc = "[d] Create directory", noremap = true })
|
||||
|
||||
-- Open explorer
|
||||
vim.keymap.set("n", "<leader>oe", ":Ex<CR>", { desc = "[e] Open the explorer" })
|
||||
|
||||
-- Keymaps for better default experience
|
||||
-- See `:help vim.keymap.set()`
|
||||
vim.keymap.set({ "n", "v" }, "<Space>", "<Nop>", { silent = true })
|
||||
|
||||
-- Remap for dealing with word wrap
|
||||
@@ -398,12 +406,15 @@ require("which-key").register({
|
||||
-- If you want to override the default filetypes that your language server will attach to you can
|
||||
-- define the property "filetypes" to the map in question.
|
||||
local servers = {
|
||||
rust_analyzer = {},
|
||||
lemminx = {},
|
||||
yamlls = {},
|
||||
bashls = {},
|
||||
jsonls = {},
|
||||
clangd = {},
|
||||
html = { filetypes = { "html", "twig", "hbs" } },
|
||||
cssls = {},
|
||||
rust_analyzer = {},
|
||||
jdtls = {},
|
||||
html = {},
|
||||
lua_ls = {
|
||||
Lua = {
|
||||
workspace = { checkThirdParty = false },
|
||||
|
||||
Reference in New Issue
Block a user