Changed neovim config

This commit is contained in:
2023-10-24 05:29:39 +02:00
parent 314ff2f75d
commit c30a2370ae
2 changed files with 19 additions and 7 deletions

View File

@@ -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 },

View File

@@ -1,9 +1,10 @@
color=550000
clock
grace=5
indicator
effect-scale=0.4
effect-vignette=0.2:0.5
effect-blur=4x2
color=550000
timestr=%k:%M
datestr=%a %e.%m.%Y
effect-blur=4x2
effect-scale=0.4
effect-vignette=0.2:0.5
image=~/.config/hypr/theme/current_background.jpg