Skip to content

Commit

Permalink
live server added
Browse files Browse the repository at this point in the history
  • Loading branch information
tunctugcu committed Sep 28, 2024
1 parent 249d86c commit e40a760
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/config/lazy.lua
Original file line number Diff line number Diff line change
@@ -59,6 +59,10 @@ vim.keymap.set("n", "<S-Tab>", ":bprev<CR>")
vim.keymap.set('n', '<C-s>', ':w<CR>', { noremap = true, silent = true })
vim.keymap.set('i', '<C-s>', '<Esc>:w<CR>a', { noremap = true, silent = true })


vim.api.nvim_set_keymap('n', '<leader>lss', ':LiveServerStart<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<leader>lst', ':LiveServerStop<CR>', { noremap = true, silent = true })

vim.api.nvim_create_autocmd('LspAttach', {
callback = function(e)
local opts = { buffer = e.buf }

0 comments on commit e40a760

Please sign in to comment.